 //********************************************************
 // MonetaryCoin.java           Author:20172323wyh
 //
 // 声明一个变量保存硬币面值并返回，继承父类抛硬币功能。
 //********************************************************

 public class MonetaryCoin extends Coin
 {
    private int facevalue;
    
    public MonetaryCoin()//import a value to resort the coin
    {
       facevalue = face;
    }

    public int getFacevalue()
    {
       return facevalue;
    }
 }

    
    
    
